@set(title, Status page)

@template(layout)
<table>
    <tr>
        <th colspan="2">Application</th>
    </tr>
    <tr>
        <td>Application</td>
        <td>@name</td>
    </tr>
    <tr>
        <td>Environment</td>
        <td>@env</td>
    </tr>
    <tr>
        <td>Session lifetime</td>
        <td>@function(status_get_session_lifetime)</td>
    </tr>
    <tr>
        <td>Debug</td>
        <td>@function(status_get_debug)</td>
    </tr>
    <tr>
        <td>Storage</td>
        <td>@function(status_get_storage)</td>
    </tr>
    <tr>
        <th colspan="2">Environment</th>
    </tr>
    <tr>
        <td>Method</td>
        <td>@method</td>
    </tr>
    <tr>
        <td>Path</td>
        <td>@uri</td>
    </tr>
    <tr>
        <td>Query string</td>
        <td>@query_string</td>
    </tr>
    <tr>
        <td>Host</td>
        <td>@host</td>
    </tr>
    <tr>
        <td>Agent</td>
        <td>@agent</td>
    </tr>
    <tr>
        <td>Remote</td>
        <td>@remote_addr</td>
    </tr>
    @/* Show the user only if there is authentication */@
    @if( status_has_auth_user )
    <tr>
        <td>User</td>
        <td>@user</td>
    </tr>
    @else
    <tr>
        <td>User</td>
        <td>No authentication</td>
    </tr>
    @endif
    <tr>
        <th colspan="2">Core</th>
    </tr>
    <tr>
        <td>Process</td>
        <td>@function(status_get_pid)</td>
    </tr>
    <tr>
        <td>Instance</td>
        <td>@instance</td>
    </tr>
    <tr>
        <td>Domain</td>
        <td>@domain</td>
    </tr>
    <tr>
        <td>Uptime</td>
        <td>@uptime</td>
    </tr>
    <tr>
        <td>Requests</td>
        <td>@function(status_get_requests)</td>
    </tr>
    <tr>
        <td>Active connections</td>
        <td>@function(status_get_active_conn)</td>
    </tr>
    <tr>
        <td>Servertime</td>
        <td>@date</td>
    </tr>
    <tr>
        <td>Framework version</td>
        <td>@framework</td>
    </tr>
    <tr>
        <td>Accelerator version</td>
        <td>@function(status_get_kore_version)</td>
    </tr>
    <tr>
        <td>License</td>
        <td>BSD-3/@year</td>
    </tr>
</table>
@endtemplate
